package com.pd.backend.service.net.impl;

import com.pd.backend.domain.entity.DGlobalUser;
import com.pd.backend.mapper.UserMapper;
import com.pd.backend.service.net.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 通过账号获取用户信息
     * @param account
     * @return
     */
    @Override
    public DGlobalUser getUserByAccount(String account) {
        return userMapper.getUserByAccount(account);
    }
}
